package com.agricultural.robot.model;

/**
 * 安全事件模型
 */
public class SafetyEvent {
    private SafetyEventType type;
    private String message;

    public SafetyEvent(SafetyEventType type, String message) {
        this.type = type;
        this.message = message;
    }

    public SafetyEventType getType() {
        return type;
    }

    public void setType(SafetyEventType type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "安全事件 [类型=" + type + ", 消息=" + message + "]";
    }
}
